package org.praluca.test1;

class GrupDeCuburi {
	private Cub cub1;
	private Cub cub2;
	private Cub cub3;
	
	/**
	 * Setez cub1
	 * @param cub
	 */
	public void setCub1(Cub kcxc){
		this.cub1 = kcxc;
	}

	/**
	 * Setez cub2
	 * @param cub
	 */
	public void setCub2(Cub cub) {
		this.cub2 = cub;
	}

	/**
	 * Setez cub2
	 * @param cub
	 */
	public void setCub3(Cub cub) { // void -> nu returnez nici o valoare
		this.cub3 = cub;
	}
	
	/**
	 * calculeaza suma volumelor cuburilor din GrupDeCuburi
	 * @return
	 */
	public int getTotalVolume() { // int -> intorc o valoare de tip int
		int suma1;
		suma1 = cub1.getVolum() + cub2.getVolum() + cub3.getVolum();
		return suma1;
	}
}
